import { BasePlugin } from "./BasePlugin";
import { UpdateGenUtil } from "../util/UpdateGenUtil";
export class UpdateGen extends BasePlugin {
    getName(): string {
        return "出热更新";
    }    
    getDesc(): string {
        return "出热更新 传入平台名，和ios|android";
    }
    do(args: string[], cb:()=>void): void {
        let iosOrAndroid : "ios"|"android" = "android";
        if (args[1] == "ios") {
            iosOrAndroid = "ios";
        }
        UpdateGenUtil.gen(args[0], iosOrAndroid, ()=>{
            console.log("UpdateGenUtil ok");
            cb();
        })
    }

}